import { createRouter, /* createWebHistory */createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
//  history: createWebHistory(import.meta.env.BASE_URL),
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/mayling',
      component: () => import('../views/Mayling.vue')
    },
    {
      path: '/gun',
      name: 'gun',
      component: () => import('../views/GunListView.vue')
    },
    {
      path: '/gun/:uid(\\d+)',
      component: () => import('../views/GunView.vue')
    },
    {
      path: '/weapon',
      name: 'weapon',
      component: () => import('../views/WeaponListView.vue')
    },
    {
      path: '/weapon/:uid(\\d+)',
      component: () => import('../views/WeaponView.vue')
    },
    {
      path: '/exp',
      name: 'exp',
      component: () => import('../views/ExpView.vue')
    },
    {
      path: '/enemy',
      name: 'enemy',
      component: () => import('../views/EnemyListView.vue')
    },
    {
      path: '/enemy/:uid(\\d+)',
      component: () => import('../views/EnemyView.vue')
    },
    {
      path: '/achievement',
      name: 'achievement',
      component: () => import('../views/AchievementView.vue')
    },
    {
      path: '/avg',
      name: 'avg',
      component: () => import('../views/AvgView.vue')
    },
    {
      path: '/stage',
      name: 'stage',
      component: () => import('../views/StageView.vue')
    }/*,
    {
      path: '/pool',
      name: 'pool',
      component: () => import('../views/GachaView.vue')
    }*/
  ]
})

export default router
